const url = require('url');

function format(ursls) {
    let obj = url.format(ursls, true, true);
    //    console.log(obj)
    return obj;
}


function parse(ursls) {
    let obj = url.parse(ursls, true, true);
    //    console.log(obj)
    return obj;
}

let ur = parse('https://mail.qq.com/cgi-bin/frame_html?sid=wfVMGW5TEIi0Kztg&r=24529fc0799f7a5e2208d1996a86f857');

let formats = format(ur);
// exports.urlObj = urlObj;
console.log(ur)
console.log(formats)